/****************************************************************************
**
****************************************************************************/

#ifndef RECORDMAIN_H
#define RECORDMAIN_H

#include <QThread>

#include "../record/baseRecord.h"

class RecordMain : public QThread
{
    Q_OBJECT

public:
    explicit RecordMain(QObject *parent = nullptr);
    ~RecordMain();

    ///
    /// \brief The OrderProtocolType enum
    ///
    enum OrderProtocolType {
        KYunKuaiChong = 0xA0,
    };

    ///
    /// \brief The OrderDeviceType enum
    ///
    enum OrderDeviceType {
        KDeviceAC = 0xA0,
        KDeviceDC,
    };

    ///
    /// \brief The OrderStatus enum
    ///
    enum OrderStatus {
        KOrderProcessing = 0xA0, /* 进行中 */
        KOrderPending,           /* 确认中 */
        KOrderComplete,          /* 已完成 */
        KOrderVoided,            /* 无效 */
    };

    static BaseRecord m_baseRecord;

protected:
    void run() Q_DECL_OVERRIDE;

private:
    bool m_quit;
    QString m_table_field;

signals:

public slots:

};

#endif // RECORDMAIN_H
